<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../template/userTemplate.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="title">
        Forgot password   
    </ui:define>

    <ui:define name="head">
    </ui:define>

    <ui:define name="content1">
        <div class="page-header">
            <h3>Login</h3>


        </div>
        <div class="col-3 col-sm-3 col-lg-3"></div>

        <div class="col-6 col-sm-6 col-lg-6 ">
            <div class="alert alert-success">

            </div>
            <h:form id="f1" styleClass="alert alert-info">
                <div class="form-group">
                    <div class="col-2">Enter your email</div>
                    <div class="input-group ">
                        <span class="input-group-addon">@</span>
                        <!--<input type="text" class="form-control" placeholder="Full name" />-->
                        <h:inputText value="#{resetPassword.email}" styleClass="form-control">

                        </h:inputText>
                    </div>
                </div>
                <h:commandButton value="Send me" action="#{resetPassword.checkAndSend()}" styleClass="btn btn-default" />
            </h:form>
            
            <!--                <div class="alert alert-danger" >
                                Sorry! Your username/email and password doesnt match any account
                            </div>-->

        </div>
       
    </ui:define>

</ui:composition>
